package c.e.b.h.e.m;

import com.huawei.hms.jos.games.ranking.RankingConst;
import com.huawei.hms.support.api.entity.common.CommonConstant.ReqAccessTokenParam;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant.HaKey;
import java.io.IOException;

/* compiled from: AutoCrashlyticsReportEncoder */
public final class a implements c.e.b.i.h.a {
    public static final c.e.b.i.h.a a = new a();

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class a implements c.e.b.i.d<c.e.b.h.e.m.v.b> {
        public static final a a = new a();

        public void a(Object obj, Object obj2) throws IOException {
            c.e.b.h.e.m.v.b bVar = (c.e.b.h.e.m.v.b) obj;
            c.e.b.i.e eVar = (c.e.b.i.e) obj2;
            eVar.f("key", bVar.a());
            eVar.f("value", bVar.b());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class b implements c.e.b.i.d<v> {
        public static final b a = new b();

        public void a(Object obj, Object obj2) throws IOException {
            v vVar = (v) obj;
            c.e.b.i.e eVar = (c.e.b.i.e) obj2;
            eVar.f("sdkVersion", vVar.g());
            eVar.f("gmpAppId", vVar.c());
            eVar.c("platform", vVar.f());
            eVar.f("installationUuid", vVar.d());
            eVar.f("buildVersion", vVar.a());
            eVar.f("displayVersion", vVar.b());
            eVar.f("session", vVar.h());
            eVar.f("ndkPayload", vVar.e());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class c implements c.e.b.i.d<c.e.b.h.e.m.v.c> {
        public static final c a = new c();

        public void a(Object obj, Object obj2) throws IOException {
            c.e.b.h.e.m.v.c cVar = (c.e.b.h.e.m.v.c) obj;
            c.e.b.i.e eVar = (c.e.b.i.e) obj2;
            eVar.f("files", cVar.a());
            eVar.f("orgId", cVar.b());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class d implements c.e.b.i.d<c.e.b.h.e.m.v.c.a> {
        public static final d a = new d();

        public void a(Object obj, Object obj2) throws IOException {
            c.e.b.h.e.m.v.c.a aVar = (c.e.b.h.e.m.v.c.a) obj;
            c.e.b.i.e eVar = (c.e.b.i.e) obj2;
            eVar.f("filename", aVar.b());
            eVar.f("contents", aVar.a());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class e implements c.e.b.i.d<c.e.b.h.e.m.v.d.a> {
        public static final e a = new e();

        public void a(Object obj, Object obj2) throws IOException {
            c.e.b.h.e.m.v.d.a aVar = (c.e.b.h.e.m.v.d.a) obj;
            c.e.b.i.e eVar = (c.e.b.i.e) obj2;
            eVar.f("identifier", aVar.b());
            eVar.f(HaKey.BI_KEY_VERSION, aVar.e());
            eVar.f("displayVersion", aVar.a());
            eVar.f("organization", aVar.d());
            eVar.f("installationUuid", aVar.c());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class f implements c.e.b.i.d<c.e.b.h.e.m.v.d.a.a> {
        public static final f a = new f();

        public void a(Object obj, Object obj2) throws IOException {
            ((c.e.b.i.e) obj2).f("clsId", ((c.e.b.h.e.m.v.d.a.a) obj).a());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class g implements c.e.b.i.d<c.e.b.h.e.m.v.d.c> {
        public static final g a = new g();

        public void a(Object obj, Object obj2) throws IOException {
            c.e.b.h.e.m.v.d.c cVar = (c.e.b.h.e.m.v.d.c) obj;
            c.e.b.i.e eVar = (c.e.b.i.e) obj2;
            eVar.c("arch", cVar.a());
            eVar.f("model", cVar.e());
            eVar.c("cores", cVar.b());
            eVar.b("ram", cVar.g());
            eVar.b("diskSpace", cVar.c());
            eVar.a("simulator", cVar.i());
            eVar.c(ReqAccessTokenParam.STATE_LABEL, cVar.h());
            eVar.f("manufacturer", cVar.d());
            eVar.f("modelClass", cVar.f());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class h implements c.e.b.i.d<c.e.b.h.e.m.v.d> {
        public static final h a = new h();

        public void a(Object obj, Object obj2) throws IOException {
            c.e.b.h.e.m.v.d dVar = (c.e.b.h.e.m.v.d) obj;
            c.e.b.i.e eVar = (c.e.b.i.e) obj2;
            eVar.f("generator", dVar.e());
            eVar.f("identifier", dVar.g().getBytes(v.a));
            eVar.b("startedAt", dVar.i());
            eVar.f("endedAt", dVar.c());
            eVar.a("crashed", dVar.k());
            eVar.f("app", dVar.a());
            eVar.f("user", dVar.j());
            eVar.f("os", dVar.h());
            eVar.f("device", dVar.b());
            eVar.f("events", dVar.d());
            eVar.c("generatorType", dVar.f());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class i implements c.e.b.i.d<c.e.b.h.e.m.v.d.d.a> {
        public static final i a = new i();

        public void a(Object obj, Object obj2) throws IOException {
            c.e.b.h.e.m.v.d.d.a aVar = (c.e.b.h.e.m.v.d.d.a) obj;
            c.e.b.i.e eVar = (c.e.b.i.e) obj2;
            eVar.f("execution", aVar.c());
            eVar.f("customAttributes", aVar.b());
            eVar.f("background", aVar.a());
            eVar.c("uiOrientation", aVar.d());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class j implements c.e.b.i.d<c.e.b.h.e.m.v.d.d.a.b.a> {
        public static final j a = new j();

        public void a(Object obj, Object obj2) throws IOException {
            c.e.b.h.e.m.v.d.d.a.b.a aVar = (c.e.b.h.e.m.v.d.d.a.b.a) obj;
            c.e.b.i.e eVar = (c.e.b.i.e) obj2;
            eVar.b("baseAddress", aVar.a());
            eVar.b("size", aVar.c());
            eVar.f(RankingConst.RANKING_JGW_NAME, aVar.b());
            String d = aVar.d();
            eVar.f("uuid", d != null ? d.getBytes(v.a) : null);
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class k implements c.e.b.i.d<c.e.b.h.e.m.v.d.d.a.b> {
        public static final k a = new k();

        public void a(Object obj, Object obj2) throws IOException {
            c.e.b.h.e.m.v.d.d.a.b bVar = (c.e.b.h.e.m.v.d.d.a.b) obj;
            c.e.b.i.e eVar = (c.e.b.i.e) obj2;
            eVar.f("threads", bVar.d());
            eVar.f("exception", bVar.b());
            eVar.f("signal", bVar.c());
            eVar.f("binaries", bVar.a());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class l implements c.e.b.i.d<c.e.b.h.e.m.v.d.d.a.b.b> {
        public static final l a = new l();

        public void a(Object obj, Object obj2) throws IOException {
            c.e.b.h.e.m.v.d.d.a.b.b bVar = (c.e.b.h.e.m.v.d.d.a.b.b) obj;
            c.e.b.i.e eVar = (c.e.b.i.e) obj2;
            eVar.f("type", bVar.e());
            eVar.f("reason", bVar.d());
            eVar.f("frames", bVar.b());
            eVar.f("causedBy", bVar.a());
            eVar.c("overflowCount", bVar.c());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class m implements c.e.b.i.d<c.e.b.h.e.m.v.d.d.a.b.c> {
        public static final m a = new m();

        public void a(Object obj, Object obj2) throws IOException {
            c.e.b.h.e.m.v.d.d.a.b.c cVar = (c.e.b.h.e.m.v.d.d.a.b.c) obj;
            c.e.b.i.e eVar = (c.e.b.i.e) obj2;
            eVar.f(RankingConst.RANKING_JGW_NAME, cVar.c());
            eVar.f("code", cVar.b());
            eVar.b("address", cVar.a());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class n implements c.e.b.i.d<c.e.b.h.e.m.v.d.d.a.b.d> {
        public static final n a = new n();

        public void a(Object obj, Object obj2) throws IOException {
            c.e.b.h.e.m.v.d.d.a.b.d dVar = (c.e.b.h.e.m.v.d.d.a.b.d) obj;
            c.e.b.i.e eVar = (c.e.b.i.e) obj2;
            eVar.f(RankingConst.RANKING_JGW_NAME, dVar.c());
            eVar.c("importance", dVar.b());
            eVar.f("frames", dVar.a());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class o implements c.e.b.i.d<c.e.b.h.e.m.v.d.d.a.b.d.a> {
        public static final o a = new o();

        public void a(Object obj, Object obj2) throws IOException {
            c.e.b.h.e.m.v.d.d.a.b.d.a aVar = (c.e.b.h.e.m.v.d.d.a.b.d.a) obj;
            c.e.b.i.e eVar = (c.e.b.i.e) obj2;
            eVar.b("pc", aVar.d());
            eVar.f("symbol", aVar.e());
            eVar.f("file", aVar.a());
            eVar.b(RankingConst.RANKING_SDK_OFFSET, aVar.c());
            eVar.c("importance", aVar.b());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class p implements c.e.b.i.d<c.e.b.h.e.m.v.d.d.b> {
        public static final p a = new p();

        public void a(Object obj, Object obj2) throws IOException {
            c.e.b.h.e.m.v.d.d.b bVar = (c.e.b.h.e.m.v.d.d.b) obj;
            c.e.b.i.e eVar = (c.e.b.i.e) obj2;
            eVar.f("batteryLevel", bVar.a());
            eVar.c("batteryVelocity", bVar.b());
            eVar.a("proximityOn", bVar.f());
            eVar.c("orientation", bVar.d());
            eVar.b("ramUsed", bVar.e());
            eVar.b("diskUsed", bVar.c());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class q implements c.e.b.i.d<c.e.b.h.e.m.v.d.d> {
        public static final q a = new q();

        public void a(Object obj, Object obj2) throws IOException {
            c.e.b.h.e.m.v.d.d dVar = (c.e.b.h.e.m.v.d.d) obj;
            c.e.b.i.e eVar = (c.e.b.i.e) obj2;
            eVar.b("timestamp", dVar.d());
            eVar.f("type", dVar.e());
            eVar.f("app", dVar.a());
            eVar.f("device", dVar.b());
            eVar.f("log", dVar.c());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class r implements c.e.b.i.d<c.e.b.h.e.m.v.d.d.c> {
        public static final r a = new r();

        public void a(Object obj, Object obj2) throws IOException {
            ((c.e.b.i.e) obj2).f("content", ((c.e.b.h.e.m.v.d.d.c) obj).a());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class s implements c.e.b.i.d<c.e.b.h.e.m.v.d.e> {
        public static final s a = new s();

        public void a(Object obj, Object obj2) throws IOException {
            c.e.b.h.e.m.v.d.e eVar = (c.e.b.h.e.m.v.d.e) obj;
            c.e.b.i.e eVar2 = (c.e.b.i.e) obj2;
            eVar2.c("platform", eVar.b());
            eVar2.f(HaKey.BI_KEY_VERSION, eVar.c());
            eVar2.f("buildVersion", eVar.a());
            eVar2.a("jailbroken", eVar.d());
        }
    }

    /* compiled from: AutoCrashlyticsReportEncoder */
    public static final class t implements c.e.b.i.d<c.e.b.h.e.m.v.d.f> {
        public static final t a = new t();

        public void a(Object obj, Object obj2) throws IOException {
            ((c.e.b.i.e) obj2).f("identifier", ((c.e.b.h.e.m.v.d.f) obj).a());
        }
    }

    public void a(c.e.b.i.h.b<?> bVar) {
        Class cls = v.class;
        b bVar2 = b.a;
        c.e.b.i.i.e eVar = (c.e.b.i.i.e) bVar;
        eVar.a.put(cls, bVar2);
        eVar.b.remove(cls);
        cls = b.class;
        eVar.a.put(cls, bVar2);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.d.class;
        h hVar = h.a;
        eVar.a.put(cls, hVar);
        eVar.b.remove(cls);
        cls = f.class;
        eVar.a.put(cls, hVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.d.a.class;
        e eVar2 = e.a;
        eVar.a.put(cls, eVar2);
        eVar.b.remove(cls);
        cls = g.class;
        eVar.a.put(cls, eVar2);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.d.a.a.class;
        f fVar = f.a;
        eVar.a.put(cls, fVar);
        eVar.b.remove(cls);
        cls = h.class;
        eVar.a.put(cls, fVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.d.f.class;
        t tVar = t.a;
        eVar.a.put(cls, tVar);
        eVar.b.remove(cls);
        cls = u.class;
        eVar.a.put(cls, tVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.d.e.class;
        s sVar = s.a;
        eVar.a.put(cls, sVar);
        eVar.b.remove(cls);
        cls = t.class;
        eVar.a.put(cls, sVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.d.c.class;
        g gVar = g.a;
        eVar.a.put(cls, gVar);
        eVar.b.remove(cls);
        cls = i.class;
        eVar.a.put(cls, gVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.d.d.class;
        q qVar = q.a;
        eVar.a.put(cls, qVar);
        eVar.b.remove(cls);
        cls = j.class;
        eVar.a.put(cls, qVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.d.d.a.class;
        i iVar = i.a;
        eVar.a.put(cls, iVar);
        eVar.b.remove(cls);
        cls = k.class;
        eVar.a.put(cls, iVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.d.d.a.b.class;
        k kVar = k.a;
        eVar.a.put(cls, kVar);
        eVar.b.remove(cls);
        cls = l.class;
        eVar.a.put(cls, kVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.d.d.a.b.d.class;
        n nVar = n.a;
        eVar.a.put(cls, nVar);
        eVar.b.remove(cls);
        cls = p.class;
        eVar.a.put(cls, nVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.d.d.a.b.d.a.class;
        o oVar = o.a;
        eVar.a.put(cls, oVar);
        eVar.b.remove(cls);
        cls = q.class;
        eVar.a.put(cls, oVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.d.d.a.b.b.class;
        l lVar = l.a;
        eVar.a.put(cls, lVar);
        eVar.b.remove(cls);
        cls = n.class;
        eVar.a.put(cls, lVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.d.d.a.b.c.class;
        m mVar = m.a;
        eVar.a.put(cls, mVar);
        eVar.b.remove(cls);
        cls = o.class;
        eVar.a.put(cls, mVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.d.d.a.b.a.class;
        j jVar = j.a;
        eVar.a.put(cls, jVar);
        eVar.b.remove(cls);
        cls = m.class;
        eVar.a.put(cls, jVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.b.class;
        a aVar = a.a;
        eVar.a.put(cls, aVar);
        eVar.b.remove(cls);
        cls = c.class;
        eVar.a.put(cls, aVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.d.d.b.class;
        p pVar = p.a;
        eVar.a.put(cls, pVar);
        eVar.b.remove(cls);
        cls = r.class;
        eVar.a.put(cls, pVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.d.d.c.class;
        r rVar = r.a;
        eVar.a.put(cls, rVar);
        eVar.b.remove(cls);
        cls = s.class;
        eVar.a.put(cls, rVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.c.class;
        c cVar = c.a;
        eVar.a.put(cls, cVar);
        eVar.b.remove(cls);
        cls = d.class;
        eVar.a.put(cls, cVar);
        eVar.b.remove(cls);
        cls = c.e.b.h.e.m.v.c.a.class;
        d dVar = d.a;
        eVar.a.put(cls, dVar);
        eVar.b.remove(cls);
        cls = e.class;
        eVar.a.put(cls, dVar);
        eVar.b.remove(cls);
    }
}
